/**
 * Copyright (c)  HeiFeiDeFengZheng.Co.Ltd. All rights reserved.
 **/
package controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 功能描述：
 *
 * @author huifeidefengzheng
 * @since 2023-10-29
 *
 **/
@Controller
public class HellJpaThyController {

    @RequestMapping("/hello")
    public String hello(Model model, @RequestParam(value = "name" , required = false, defaultValue = "World")String name) {
        model.addAttribute("name", name);
        return "hello";
    }
}
